From: Ray Strode Date: Wed, 22 Jul 2015 18:52:22 +0000 (-0400) Subject: authPrompt: don't allow next if entry is empty X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1286 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fe7dd1305f10b687f19f6eb6fcb3b47b74e84bd6;p=gnome-shell.git authPrompt: don't allow next if entry is empty Normally the user isn't allowed to proceed passed the username question until they've filled it in. To ensure this, the authprompt code desensitizes the next button when the number of characters change to zero. Unfortunately it fails to desensitize the next button up front when the entry starts out empty. This commit addresses that bug. https://bugzilla.gnome.org/show_bug.cgi?id=752739 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index a5c6862a9..6e5c79f20 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -401,7 +401,7 @@ const AuthPrompt = new Lang.Class({ }, updateSensitivity: function(sensitive) { - this._updateNextButtonSensitivity(sensitive); + this._updateNextButtonSensitivity(sensitive && this._entry.text.length > 0); this._entry.reactive = sensitive; this._entry.clutter_text.editable = sensitive; },